<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/token.jsp"%>
<%@ include file="/common/message.jsp"%>
<%
    String id = input.getDesc("register_id", "-1");
    List<RegisterOrder> orders = QBuilder.db("basedb").select().from("RegisterOrder").where(new Where("hospital=", hospital).and("status=", STATUS_ENABLE).and("id=", id)).query().getResultObj();
    if (isEmpty(orders)) {
        msg = new Message(30041, "预约信息异常");
        Tools.encryptPrint(out, msg);
        return;
    }
    RegisterOrder order = orders.get(0);
    order.setRegisterStatus(0);
    DBTools.db("basedb").modItem(order, order.getId());
    createMsg(order, token.getUid());
    Tools.encryptPrint(out, msg);
%>
